Skip to content

Conversation

siddharthkp
Copy link
Member

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

Merge checklist

Copy link

changeset-bot bot commented Sep 23, 2025

🦋 Changeset detected

Latest commit: 21fae66

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@primer/react Major
@primer/styled-react Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@siddharthkp siddharthkp self-assigned this Sep 23, 2025
@github-actions github-actions bot added staff Author is a staff member integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm labels Sep 23, 2025
Copy link
Contributor

👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks!

@github-actions github-actions bot requested a deployment to storybook-preview-6898 September 23, 2025 08:57 Abandoned
@github-actions github-actions bot temporarily deployed to storybook-preview-6898 September 23, 2025 09:05 Inactive
@siddharthkp siddharthkp changed the title make item.id required SelectPanel: make item.id required Sep 23, 2025
@github-actions github-actions bot temporarily deployed to storybook-preview-6898 September 23, 2025 09:14 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-6898 October 6, 2025 19:44 Inactive
@siddharthkp siddharthkp marked this pull request as ready for review October 6, 2025 21:04
@siddharthkp siddharthkp requested a review from a team as a code owner October 6, 2025 21:04
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR makes the id property required for SelectPanel items, addressing issue #5556. This is a breaking change that ensures better component reliability and accessibility by requiring unique identifiers for all items.

Key changes:

  • Updated FilteredActionListItemProps interface to make id field required instead of optional
  • Modified type definitions to enforce required id for custom item renderers
  • Updated all test files to include id properties for SelectPanel items

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/react/src/FilteredActionList/types.ts Made id field required in interfaces and updated type definitions
packages/react/src/FilteredActionList/FilteredActionList.tsx Removed optional chaining for item.id since it's now guaranteed to exist
packages/react/src/SelectPanel/SelectPanel.test.tsx Added required id properties to test item objects
packages/react/src/SelectPanel/SelectPanel.examples.stories.tsx Removed optional chaining when accessing item.id
.changeset/selectpanel-item-id-required.md Added changeset documenting the breaking change

@primer-integration
Copy link

👋 Hi from github/github-ui! Your integration PR is ready: https://github.com/github/github-ui/pull/3917

@primer-integration
Copy link

primer-integration bot commented Oct 6, 2025

🔴 ci completed with status failure.

boo, this is because main is also failing integration

@github-actions github-actions bot added integration-tests: failing Changes in this PR cause breaking changes in gh/gh and removed integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm labels Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration-tests: failing Changes in this PR cause breaking changes in gh/gh staff Author is a staff member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant